package br.mikhas.lab.scanner;

public class AcceptCharTransition extends Transition {

	private final char accepted;

	public AcceptCharTransition(State state, char accepted) {
		super(state);
		this.accepted = accepted;
	}

	@Override
	boolean accept(char c) {
		return accepted == c;
	}

	@Override
	public String toString() {
		return "ACCEPT -> " + accepted + " -> " + this.getNextState();
	}
}
